<%@ page import="sistema.Venda" %>

<div class="fieldcontain ${hasErrors(bean: vendaInstance, field: 'vendedor', 'error')} required">
  <label for="vendedor">
    <g:message code="venda.vendedor.label" default="Vendedor" />
    <span class="required-indicator">*</span>
  </label>
  <g:select id="vendedor" name="vendedor.id" from="${sistema.Vendedor.list()}" optionKey="id" required="" value="${vendaInstance?.vendedor?.id}" class="many-to-one"/>
</div>

<g:hiddenField name="codBarra"/>
<g:hiddenField name="total"/>

<g:each var="i" status="u" in="${1..40}">
  <div class="fieldcontain ${hasErrors(bean: produtoInstance, field: 'codBarra', 'error')} required">
    <label for="codBarra">
      <g:message code="produto.codBarra.label" default="Cod Barra" />
    </label>
    <input style="width: 70px; margin-right: 10px" type="text" name="codBarra" maxlength="8" value="" />
    QTD
    <input style="width: 50px" type="text" name="total" maxlength="3" value="" />
  </div>
</g:each>
